package team.seekers.hula.system.resource.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import team.seekers.hula.common.entity.BaseDO;

import java.util.Date;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(VideoDOField.TABLE_NAME)
public class VideoDO extends BaseDO {

    private static final long serialVersionUID = 1L;

    @TableId(value = VideoDOField.ID, type = IdType.ASSIGN_ID)
    private String id;

    @TableField(value = VideoDOField.GMT_CREATE, fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(value = VideoDOField.GMT_MODIFIED, fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @TableField(VideoDOField.DELETED)
    @TableLogic(value = "0", delval = "1")
    private Integer deleted;

    @TableField(VideoDOField.USER_ID)
    private String userId;

    @TableField(VideoDOField.OSS)
    private String oss;

    @TableField(VideoDOField.SIZE)
    private Integer size;

    @TableField(VideoDOField.NAME)
    private String name;

    @TableField(VideoDOField.EXTENSION_NAME)
    private String extensionName;
}
